package com.example.exam.utils;

import com.example.exam.menu.QuestionType;

import java.util.Arrays;

/**
 * @author zhang
 */
public class SynthesisUtils {
    public static Boolean questionType(Integer type) {
        QuestionType[] values = QuestionType.values();
        return Arrays.stream(values).noneMatch(questionType -> questionType.getType().equals(type));
    }
}
